# This is a sample Python script.

# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
import MyPage
import MyPageZhengze


def print_hi(name):
    # Use a breakpoint in the code line below to debug your script.
    print(f'Hi, {name}')  # Press Ctrl+F8 to toggle the breakpoint.


# Press the green button in the gutter to run the script.
if __name__ == '__main__':
    print_hi('PyCharm')
    url = "https://www.shanghairanking.cn/rankings/bcur/2021"
    #MyPage.getPageData("https://www.baidu.com/")
    #MyPage.createFile("https://www.baidu.com/")
    text = MyPageZhengze.getHttpText(url)
    #res = MyPageZhengze.findText(text)
    MyPageZhengze.fillList(text)
    MyPageZhengze.printUnivlist(5)
    #print(res)

# See PyCharm help at https://www.jetbrains.com/help/pycharm/
